package com.yvdedu.hospital.service.impl;

import java.util.List;
import java.util.Set;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.yvdedu.hospital.entity.Login;
import com.yvdedu.hospital.entity.Role;
import com.yvdedu.hospital.entity.User;
import com.yvdedu.hospital.entity.tool.DostatTool;
import com.yvdedu.hospital.entity.tool.OutpatiTool;
import com.yvdedu.hospital.entity.tool.StdepTool;
import com.yvdedu.hospital.mapper.LoginMapper;
import com.yvdedu.hospital.mapper.StatisticsMapper;
import com.yvdedu.hospital.service.LoginService;
import com.yvdedu.hospital.service.StatisticsService;

@Service
public class StatisticsS implements StatisticsService  {
	@Resource
	StatisticsMapper statisticsMapper;


	@Override
	public List<OutpatiTool> outpatientSearch(String name, int pageNaber) {
		PageHelper.startPage(pageNaber, 3);
		List<OutpatiTool> list = statisticsMapper.outpatientSearch(name);
		return list;
	}


	@Override
	public List<StdepTool> stedp(String name) {
		List<StdepTool> list = statisticsMapper.stedp(name);
		return list;
	}


	@Override
	public List<User> userque(int role_id) {
		List<User> list = statisticsMapper.userque(role_id);
		return list;
	}


	@Override
	public List<DostatTool> dostse(String do_name) {
		List<DostatTool> list = statisticsMapper.dostse(do_name);
		return list;
	}
	

}
